using System;
using System.Collections.Generic;
using System.Text;

namespace SqlBlocks
{
    public class OperationCollection<T> : List<ItemOperation<T>>
    {
        public OperationCollection<T> Filter(T type)
        {
            OperationCollection<T> l = new OperationCollection<T>();
            foreach (ItemOperation<T> item in this)
            {
                if (item.Type.Equals(type))
                {
                    l.Add(item);
                }
            }
            return l;
        }
    }
}
